package net.protocol.diameter.dictionary;

/**
 *
 * @author jinhongw@gmail.com
 */
public interface MessageFormatFactory {

    /**
     * Default appId is zero
     *
     * @param code Command Code
     * @param request the message is a request or an answer
     * @return Diameter Message Format
     */
    MessageFormat get(int code, boolean request);

    /**
     * @param appId Diameter App-Id,For example: BaseAppId(0),GxAppId(16777238),ShAppId(16777217)
     * @param code Command Code
     * @param request the message is a request or an answer
     * @return Diameter Message Format
     */
    MessageFormat get(int appId, int code, boolean request);
}
